home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10120 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: mack.rt66.com!usenet
  2. From: glenden@rt66.com (Brian Glendenning)
  3. Newsgroups: comp.os.ms-windows.programmer.tools.misc,comp.lang.c++
  4. Subject: C++ compilers with separate template instantiation?
  5. Date: Wed, 06 Mar 1996 02:06:43 GMT
  6. Organization: Rt66.COM, Public Internet Access in New Mexico
  7. Message-ID: <4hirm9$4i9@mack.rt66.com>
  8. NNTP-Posting-Host: pme01.rt66.com
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. Hello:
  12.  
  13. I'm an experience C++ programmer on Unix. I'm used to CFront and various
  14. native compilers from various vendors. All of them support separate
  15. template instantiation in various ways.
  16.  
  17. I recently got VC++ 4.0 for my PC. To my disappointment, I discovered that
  18. it apparently needs the template definitions to be explicitly included
  19. where an instantiation is needed.
  20.  
  21. Are there any PC compilers where this is not necessary? I  would prefer the
  22. compiler figure out where to do the instantiation. I have a vague
  23. recollection that Borland used to instantiate into every object that needs
  24. a certain instantiation, and then the linker throws the excess copies away.
  25. Is this right?
  26.  
  27. What PC compiler has the best template support in general? Thank you.
  28.  
  29. Brian Glendenning, glenden@rt66.com
  30.  
  31.  
  32.